const { IS_DEV } = require('../config');

// 会员服务
const MEMBER_DOMAIN_DEV = 'https://member.dev.biling.club'; // 'https://member.dev.biling.club' 'http://localhost:8520'
const MEMBER_DOMAIN_PROD = 'https://member.api.biling.club';
const MEMBER_DOMAIN = IS_DEV ? MEMBER_DOMAIN_DEV : MEMBER_DOMAIN_PROD;
// 商城服务
const SHOP_DMAIN_DEV = 'https://mall.dev.biling.club'; // 'https://mall.dev.biling.club' 'http://localhost:3007'
const SHOP_DMAIN_PROD = 'https://mall.api.biling.club';
const SHOP_DMAIN = IS_DEV ? SHOP_DMAIN_DEV : SHOP_DMAIN_PROD;

// 公共服务
const OPEN_DMAIN_DEV = 'https://open.dev.biling.club';
const OPEN_DMAIN_PROD = 'https://open.api.biling.club';
const OPEN_DMAIN = IS_DEV ? OPEN_DMAIN_DEV : OPEN_DMAIN_PROD;

// 营销服务
const MARKET_DOAMIN_DEV = 'https://bp-mweb.dev.biling.club';
const MARKET_DOAMIN_PROD = 'https://bp-mweb.api.biling.club';
const MARKET_DOMAIN = IS_DEV ? MARKET_DOAMIN_DEV : MARKET_DOAMIN_PROD;

// 仓库服务
const INVENTORY_DOMAIN_DEV = 'https://inventory.dev.biling.club';
const INVENTORY_DOMAIN_PROD = 'https://inventory.api.biling.club';
const INVENTORY_DOMAIN = IS_DEV ? INVENTORY_DOMAIN_DEV : INVENTORY_DOMAIN_PROD;

// 跳转地址
const REDIRECT_DOMAIN_DEV = 'https://m.dev.biling.club';
const REDIRECT_DOMAIN_PROD = 'https://m.biling.club';
const REDIRECT_DOMAIN = IS_DEV ? REDIRECT_DOMAIN_DEV : REDIRECT_DOMAIN_PROD;

const REDIRECT_PATH = '/sole/bilin-mini-redirect';

module.exports = {
    MEMBER_DOMAIN,
    SHOP_DMAIN,
    OPEN_DMAIN,
    MARKET_DOMAIN,
    INVENTORY_DOMAIN,
    REDIRECT_DOMAIN,
    REDIRECT_PATH,
};